import request from '@/utils/request'

export function getExpensesList(query) {
  return request({
    url: '/finance/expenses/getList',
    method: 'post',
    data: query
  })
}
export function getExpensesUseable(query) {
  return request({
    url: '/finance/expenses/getAvailable',
    method: 'post',
    data: query
  })
}

export function getExpensesDetail(id) {
  return request({
    url: '/finance/expenses/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveExpenses(id) {
  return request({
    url: '/finance/expenses/save',
    method: 'post',
    data: id
  })
}

export function removeExpensesByID(id) {
  return request({
    url: '/finance/expenses/delete',
    method: 'post',
    data: id
  })
}

export function changeExpensesStatusByID(formdata) {
  return request({
    url: '/finance/expenses/change-status',
    method: 'post',
    data: formdata
  })
}

